﻿using ERPSystem.Common.BaseEntitys;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERPSystem.Common.Domains.WarehouseCommon
{
    /// <summary>
    /// 仓库信息 Warehouse
    /// </summary>
    [SugarTable("Warehouses")]
    public class Warehouse : BaseEntity
    {
        /// <summary>
        /// 仓库编号
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public int WarehouseId { get; set; }
        /// <summary>
        /// 仓库代码
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string RepositoryCode { get; set; }
        /// <summary>
        /// 仓库名称
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string WarehouseName { get; set; }
        #region 更改过的
        /// <summary> 
        /// 仓库料品
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string MaterialTypeIds { get; set; }
        /// <summary>
        /// 入库类型
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string InBoundTypeId { get; set; }
        /// <summary>
        /// 出库类型
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string OutBoundTypeId { get; set; }
        /// <summary>
        /// 到货类型
        /// </summary>

        public string ArrivalTypeId { get; set; }
        #endregion
        /// <summary>
        /// 仓库期间
        /// </summary>
        public bool PeriodOfStorage { get; set; }
        /// <summary>
        /// 开始日期
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public DateTime StartDate { get; set; }
        /// <summary>
        /// 启动货位
        /// </summary>
        public bool StartCargoSpace { get; set; }
        /// <summary>
        /// 表单配置
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string FormConfiguration { get; set; }
        /// <summary>
        /// 仓管员
        /// </summary>
        public int WarehouseKeeperId { get; set; }
        /// <summary>
        /// 操作员
        /// </summary>
        public int OperatorId { get; set; }
    }
}
